<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewManagerTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewManagerLabel_managerId}"/>
                    <h:outputText value="#{managerController.selected.managerId}" title="#{bundle.ViewManagerTitle_managerId}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_username}"/>
                    <h:outputText value="#{managerController.selected.username}" title="#{bundle.ViewManagerTitle_username}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_password}"/>
                    <h:outputText value="#{managerController.selected.password}" title="#{bundle.ViewManagerTitle_password}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_name}"/>
                    <h:outputText value="#{managerController.selected.name}" title="#{bundle.ViewManagerTitle_name}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_gender}"/>
                    <h:outputText value="#{managerController.selected.gender}" title="#{bundle.ViewManagerTitle_gender}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_birthday}"/>
                    <h:outputText value="#{managerController.selected.birthday}" title="#{bundle.ViewManagerTitle_birthday}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewManagerLabel_address}"/>
                    <h:outputText value="#{managerController.selected.address}" title="#{bundle.ViewManagerTitle_address}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_phone}"/>
                    <h:outputText value="#{managerController.selected.phone}" title="#{bundle.ViewManagerTitle_phone}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_email}"/>
                    <h:outputText value="#{managerController.selected.email}" title="#{bundle.ViewManagerTitle_email}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_isAdministrator}"/>
                    <h:outputText value="#{managerController.selected.isAdministrator}" title="#{bundle.ViewManagerTitle_isAdministrator}"/>
                    <h:outputText value="#{bundle.ViewManagerLabel_isActive}"/>
                    <h:outputText value="#{managerController.selected.isActive}" title="#{bundle.ViewManagerTitle_isActive}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{managerController.destroyAndView}" value="#{bundle.ViewManagerDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewManagerEditLink}"/>
                <br />
                <h:commandLink action="#{managerController.prepareCreate}" value="#{bundle.ViewManagerCreateLink}" />
                <br />
                <h:commandLink action="#{managerController.prepareList}" value="#{bundle.ViewManagerShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewManagerIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
